package com.itheima.demo6;

/**
 * @author zzw
 * @date 2025/4/25
 * @description 汽油车
 */
public class PetrolCar extends Car {
    public PetrolCar(Color color) {
        super(color);
    }

    @Override
    public String move() {
        return getColor().show() + "汽油车在跑";
    }
}
